// const { defineConfig } = require('@vue/cli-service')
// module.exports = defineConfig({
//   transpileDependencies: true
// })
// const { defineConfig } = require("@vue/cli-service");

const webpack = require('webpack');
module.exports = {
    transpileDependencies: true,
    devServer: {
        client: {
            overlay: false, // 禁用全局错误提示
        },
        proxy: {
          '/dev-api': {
            target: 'http://192.168.0.130:12086/lcHomeService/dev-api', // 后端服务的地址
            changeOrigin: true,
            pathRewrite: { '^/dev-api': '' },
          },
        },
      },
    css: {
        loaderOptions: {
            scss: {
                // additionalData: `@import "@/assets/styles/stylescss.scss";`
            }
        }
    },
    lintOnSave: false,
    pages: {
        index: {
            entry: 'src/main.js',
            template: 'public/index.html',
            filename: 'index.html',
            title: '量城游'
        }
    },
    //配置webpack选项的内容
    configureWebpack: {
        plugins: [
            new webpack.ProvidePlugin({
                $: "jquery",
                jQuery: "jquery",
            }),
            new webpack.DefinePlugin({
                '__VUE_PROD_HYDRATION_MISMATCH_DETAILS__': JSON.stringify(true),
            }),
        ]
    },

}